package com.crr.apis;

import com.crr.entities.PayDTO;
import com.crr.ret.ResultData;
import com.crr.ret.ReturnCodeEnum;
import org.springframework.stereotype.Component;

@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelAPi{
    @Override
    public ResultData<PayDTO> getPayByOrderNo(String orderNo) {
        return ResultData.fail(ReturnCodeEnum.RC500.getCode(), "对方服务宕机或不可用，fallback服务降级！");
    }
}
